home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / s342q08.lha / minrexx.h < prev    next >
C/C++ Source or Header  |  1995-06-04  |  1KB  |  40 lines

  1. /*
  2.  *   Includes for minrexx.c; please refer to that file for
  3.  *   further documentation.
  4.  */
  5. #include <proto/all.h>
  6. #include <string.h>
  7. #include <rexx/rxslib.h>
  8. #include <clib/rexxsyslib_protos.h>
  9. #include <pragmas/rexxsyslib_pragmas.h>
  10. /*
  11.  *   This is the list of functions we can access.  (Cheap forward
  12.  *   declarations, too.)
  13.  */
  14. long upRexxPort(char *, struct rexxCommandList *, char *,
  15.            void (*)(struct RexxMsg *, struct rexxCommandList *, char *)) ;
  16. void dnRexxPort(void) ;
  17. void dispRexxPort(void) ;
  18. struct RexxMsg *sendRexxCmd(char *, void (*)(struct RexxMsg *),
  19.            STRPTR, STRPTR, STRPTR) ;
  20. struct RexxMsg *syncRexxCmd(char *, struct RexxMsg *msg) ;
  21. struct RexxMsg *asyncRexxCmd(char *) ;
  22. void replyRexxCmd(struct RexxMsg *, long, long, char *) ;
  23. void DontReply(void) ;
  24. /*
  25.  *   Maximum messages that can be pending, and the return codes
  26.  *   for two bad situations.
  27.  */
  28. #define MAXRXOUTSTANDING (300)
  29. #define RXERRORIMGONE (100)
  30. #define RXERRORNOCMD (30)
  31. /*
  32.  *   This is the association list you build up (statically or
  33.  *   dynamically) that should be terminated with an entry with
  34.  *   NULL for the name . . .
  35.  */
  36. struct rexxCommandList {
  37.    char *name ;
  38.    void (*userdata)(struct RexxMsg *, char *) ;
  39. } ;
  40.